package com.bike.modules.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
    * 单车信息表
    */
@ApiModel(value="单车信息表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bike_info")
public class InfoDTO implements Serializable {

    private Integer id;

    @ApiModelProperty(value="单车编码")
    private String bikeNo;

    @ApiModelProperty(value="停车点id")
    private Integer parkId;

    @ApiModelProperty(value="单车照片")
    private String bileImage;

    @ApiModelProperty(value="停靠经度")
    private BigDecimal stopLng;

    @ApiModelProperty(value="停靠纬度")
    private BigDecimal stopLat;

    @ApiModelProperty(value="使用次数")
    private Integer usageCount;

    @ApiModelProperty(value="使用时间（分钟）")
    private Integer usageTime;

    @ApiModelProperty(value="使用里程（km）")
    private BigDecimal usageMileage;

    @ApiModelProperty(value="0：禁用，1：停靠中，2：使用中， 3：已故障")
    private String status;

    @ApiModelProperty(value="备注")
    private String remarks;

    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;
    private String parkName;


    private static final long serialVersionUID = 1L;

}